Skip to main content

All Questions

Tagged with
4votes
2answers
110views

Custom RowSorter that sorts a Swing table containing data with unit suffixes

I would like to hear what you say about my custom RowSorter implementation. The following comparators should be used for the table columns: String, Double and Integer. The table data has postfixes and ...
Tobias Grothe's user avatar
3votes
1answer
83views

Depth-first ListIterator over JTree

I wrote a depth-first ListIterator for JTrees. Considerations: It must be a ListIterator, ...
Sergey's user avatar
3votes
1answer
157views

Mail Client - Displaying email details for selected JTable Row

I'm trying to write a very simple IMAP email client in Java. There is one table per account with multiple multiline rows. The last selected row of one of the tables should be displayed in an extra ...
Tobias Grothe's user avatar
3votes
1answer
46views

HsbColor: a class representing a HSB/HSV color

I was looking for a way to adjust saturation and lightness of java.awt.Colors that don't expose that kind of API I wrote my own ...
Sergey's user avatar
2votes
0answers
58views

Shrinkable Swing toolbar

I was tasked with implementing a toolbar that can be shrinked beyond what's necessary to display its buttons' texts. As a last resort, the buttons should hide their texts and only display their icons ...
Sergey's user avatar
2votes
1answer
52views

Swing calculator with GUI Designer

I made this calculator during the weekends as a way to practice using IntelliJ's GUI Designer. It's used extensively in my new employer's Swing projects, but I hadn't heard of it before. As a ...
Sergey's user avatar
6votes
1answer
114views

Beat Box: an app for making, playing, saving, and loading beat patterns

I was reading Head First Java. The book featured a project called BeatBox that allowed you to make, play, save, and load beat patterns using Java's Sequencer API ...
Sergey's user avatar
4votes
0answers
62views

FlashCard app using javax.swing

I made a simple flash card app. The general idea is from Head First Java, but it's one app instead of two (for both making cards and playing them) and the implementation is different. What do you ...
Sergey's user avatar
1vote
1answer
113views

Framework for building Swing UI in a more modular fashion

Swing code may be hard to read. As is, it's not inherently visually modular, and component composition is not immediately clear. To address that, I created a simple framework called ...
Sergey's user avatar
0votes
0answers
736views

Space invaders in java swing

I am not really proud of the final project design. Whenever I try following MVC I get lost and in the end a lot of code doesnt end up where it should be. I am also wondering if am I overusing private ...
Ivica's user avatar
4votes
2answers
1kviews

Traffic simulation GUI: an exercise in concurrent programming using threads

To avoid a code dump I have removed most of the code and left the first few lines of constructors and methods and anything relevant. Full code at the bottom. The purpose of this code is to use threads ...
Corey Hodges's user avatar
2votes
1answer
357views

Sorting visualizer using Java Swing

I programmed a little sorting visualizer a while back and I have been meaning to get some feedback on the overall implementation and on what I could do better to have cleaner code or a "best ...
morloq's user avatar
4votes
2answers
243views

Java Sound GUI using MVC model

I have made a Java Swing application that detects and displays audio pitch and level from an input (e.g microphone). I would like feedback on the current structure of my project, I'm attempting to ...
Sean2148's user avatar
3votes
2answers
807views

Simple Java Tetris game

I have no IT background and taught myself Java and made a simple Tetris game. I compared my code on the internet with other tutorials. My first impression of those implementations is that they are ...
Si Vafo's user avatar
4votes
1answer
187views

Langton's Ant cellular automaton in Java

I made a couple of little games and cellular automata in Java. For every new 'game', I used the same code as a base, except for the game logic of course. With every iteration of me customizing my ...
plankins's user avatar

153050per page
close